import request from "@/utils/request";
//申请租约保理
//查询金融产品选择下拉框数据
export function productTypeList(){
  return request({
     url:'/banking/jr-product/productTypeList',
     method:'get'
  })
}
//根据小区名租客姓名模糊查询
export function contractList(query){
  return request({
     url:'/banking/cf-contract/contractList',
     method:'post',
     data:query
  })
}
//根据合同和保理产品计算该合同的保理申请明细
export function factoringApply(contractId,productId,interestRate,serviceFee,row){
  return request({
     url:'/banking/cw-receipt-plan/factoringApply',
     method:'post',
     data:{contractId:contractId,productId:productId,interestRate:interestRate,serviceFee:serviceFee,row:row}
  })
}
//申请租约保理
export function saveJrFactoring(query){
  return request({
    url:'/banking/jr-factoring/saveJrFactoring',
    method:'post',
    data:query
  })
}
